﻿@model YQBlog.Models.blog_varticle  
@using res = Resource.Views.Home.Home;      
@{YQBlog.General.GeneralConfigInfo ci = ViewBag.CI as YQBlog.General.GeneralConfigInfo;} 
@section Seo{
    @Html.Raw(ViewBag.Seo)
}
<div class="web_path">@res.Path：@Html.ActionLink(res.HomePage, "Index", "Home") \ @Html.Raw(ViewBag.WebPath)</div>
<div class="article_view">
    <h3 class="article_title">@Model.title</h3>
    <div class="article_time">
    &nbsp;
    @Model.createdate
    &nbsp;
    @(res.View)<span class="article_view_count"></span> 
    &nbsp;
    <span class="article_comment_count"></span>
    </div>
    <div class="article_summary">@Html.Raw(Model.summary)</div>
    <div class="article_content">@Html.Raw(Model.content)</div>
    @{
            
        string[] tagArray = Model.tags.Trim().Split(',');
        if (tagArray.Length > 0 && Model.tags.Trim().Length > 0)
        {
            @res.Tag@:：
            for (int i = 0; i < Model.tags.Split(',').Length; i++)
            {
                     
                <a href="@Html.YQUrl("/Tag/"+System.Web.HttpUtility.UrlEncode(tagArray[i].Replace(".", "@"), System.Text.Encoding.UTF8).Replace("+", "%20"))">@tagArray[i]</a>
            }
        }
    }
</div>
<div class="articletool">
    <div class="digg">
        <div class="digg_favor"></div>
        <div class="digg_against"></div>
        <div class="digg_tip"></div>
    </div>
    <div class="prenextlink"></div>
</div>
<a name="comment"></a>
<h2>@res.CommentsList</h2> 
@Html.Action("reply", "home", new { id = Model.id })
@section Js{
<script type="text/javascript">
    var ArticleId = @ViewBag.ArticleId;
    $(function () {
        //页面动态信息
        GetPageInfo();
        //评论加载
        GetComment(1);
    });
</script> 
}